package com.yunc.modules.cms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 问卷题目表
 *
 * @author concong tao
 * @since 2019-01-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cms_question_subject")
public class QuestionSubject implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 问卷主键
     */
    private Long questionId;

    /**
     * 题目标题
     */
    private String title;

    /**
     * 状态(0:单选，1：多选，2：填空)
     */
    private String type;

    /**
     * 排序
     */
    private Integer orderNum;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private List<QuestionSubjectSelect> selectList;
}
